import request from '@/utils/request'

// 查询考核方式设置列表
export function listMethod(query) {
  return request({
    url: '/basice_info/method/list',
    method: 'get',
    params: query
  })
}

// 查询考核方式设置详细
export function getMethod(assessmentMethodId) {
  return request({
    url: '/basice_info/method/' + assessmentMethodId,
    method: 'get'
  })
}

// 新增考核方式设置
export function addMethod(data) {
  return request({
    url: '/basice_info/method',
    method: 'post',
    data: data
  })
}

// 修改考核方式设置
export function updateMethod(data) {
  return request({
    url: '/basice_info/method',
    method: 'put',
    data: data
  })
}

// 删除考核方式设置
export function delMethod(assessmentMethodId) {
  return request({
    url: '/basice_info/method/' + assessmentMethodId,
    method: 'delete'
  })
}
